package com.wxh.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName: MasterProperties
 * @Description: 主库配置
 * @Author wxh
 * @Date: 2019/12/6 11:39
 * @Version V1.0.0
 * @Since 1.8
 */
@Component
@ConfigurationProperties(prefix = "spring.datasource.master")
public class MasterProperties {
    /**
     *  数据库地址
     */
    private String url;
    /**
     *  用户名
     */
    private String username;
    /**
     *  密码
     */
    private String password;
    /**
     *  数据库驱动
     */
    private String driverClassName;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDriverClassName() {
        return driverClassName;
    }

    public void setDriverClassName(String driverClassName) {
        this.driverClassName = driverClassName;
    }
}
